package de.freudenreichdesign.webshop.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table (name="ADRESS")
public class Adress implements Serializable {

	private static final long serialVersionUID = -2280250556266626419L;
	private long adressID;
	private String country;
	private String city;
	private String state;
	private int zipCode;
	private String street;
	private int number;
	private String additionalInfo;
	
	@SuppressWarnings("unused")
	private Adress(){}
	
	public Adress(String country, String city, String state, int zipCode,
			String street, int number, String additionalInfo) {
		this.country = country;
		this.city = city;
		this.state = state;
		this.zipCode = zipCode;
		this.street = street;
		this.number = number;
		this.additionalInfo = additionalInfo;
	}

	@Id
	@GeneratedValue (strategy=GenerationType.AUTO)
	@Column (name="ADRESS_ID")
	public long getAdressID() {
		return adressID;
	}

	@SuppressWarnings("unused")
	private void setAdressID(long adressID) {
		this.adressID = adressID;
	}

	@Column (name="COUNTRY")
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	
	@Column (name="CITY")
	public String getCity() {
		return city;
	}
	
	public void setCity(String city) {
		this.city = city;
	}
	
	@Column (name="STATE")
	public String getState() {
		return state;
	}
	
	public void setState(String state) {
		this.state = state;
	}
	
	@Column (name="ZIP_CODE")
	public int getZipCode() {
		return zipCode;
	}

	public void setZipCode(int zipCode) {
		this.zipCode = zipCode;
	}
	
	@Column (name="STREET")
	public String getStreet() {
		return street;
	}
	
	public void setStreet(String street) {
		this.street = street;
	}
	
	@Column (name="NUMBER")
	public int getNumber() {
		return number;
	}
	
	public void setNumber(int number) {
		this.number = number;
	}
	
	@Column (name="ADDITIONAL_INFO")
	public String getAdditionalInfo() {
		return additionalInfo;
	}
	
	public void setAdditionalInfo(String additionalInfo) {
		this.additionalInfo = additionalInfo;
	}
}
